-- GENERATED SPELL FOR [Jaedenar Darkweaver] --


function spell0_7118(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(11962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7118', 17000, 1)
end

function spell1_7118(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7118', 3000, 1)
end

function Sorts_7118(pUnit, Event)
local choix_sorts_7118 = math.random(0, 1)
if choix_sorts_7118 == 0 then
pUnit:RegisterEvent('spell0_7118', 1, 1)
end
if choix_sorts_7118 == 1 then
pUnit:RegisterEvent('spell1_7118', 1, 1)
end
end

function mob7118_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7118', math.random(1500, 3000), 1)
end

function mob7118_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7118_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7118_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7118, 1, 'mob7118_Action')
RegisterUnitEvent(7118, 2, 'mob7118_Leave')
RegisterUnitEvent(7118, 3, 'mob7118_Kill')
RegisterUnitEvent(7118, 4, 'mob7118_Die')
